<template>
	<view class="tui-grids" :class="{ 'tui-border-top': unlined }"><slot></slot></view>
</template>

<script setup>
import { ref } from 'vue'

const emit = defineEmits([])

const props = defineProps({
	//是否去掉上线条
	unlined: {
		type: Boolean,
		default: false
	}
})
</script>

<style lang="scss" scoped>
.tui-grids {
	width: 100%;
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
}

.tui-grids::after {
	content: ' ';
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 1px;
	border-top: 1px solid #eaeef1;
	transform-origin: 0 0;
	transform: scaleY(0.5);
}

.tui-border-top::after {
	border-top: 0 !important;
}
</style>
